using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace fenk.Sistema
{
    public partial class Spooler : mvLibrary.BaseForm
    {
        public Spooler()
        {
            InitializeComponent();
        }
        public void CallSpooler()
        {
            Cursor = Cursors.WaitCursor;
            CallProgram("SPOOLER.NET", 1, 1);
            FillControls(panelData);
            Cursor = Cursors.Default;
          
        }
        protected override void OnLoad(EventArgs e)
        {
            toolBox.Visible = false;
            CallSpooler();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (mvTextBox2.Text == "")
            {
                MessageBox.Show("Falta indicar impresora ");
                mvTextBox2.Focus();
            }
            CallSpooler();
            MessageBox.Show("Impresora lista","Resultado", MessageBoxButtons.OK, MessageBoxIcon.Information);
            mvTextBox2.Focus();
        }

        

        
    }
}

